package sy.service.impl;

import java.util.Date;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import sy.dao.IotEntranceURIDaoI;
import sy.dao.IotParkingURIDaoI;
import sy.model.IotEntranceURI;
import sy.model.IotParkingURI;
import sy.service.IotEntranceURIServiceI;
import sy.service.IotParkingURIServiceI;
@Service("iotParkingURIService")
public class IotParkingURIServiceImpl implements IotParkingURIServiceI{
	@Autowired
	IotParkingURIDaoI iotParkingURIDao;

	@Override
	public void save(IotParkingURI iotParkingURI) {
		// TODO Auto-generated method stub
		iotParkingURIDao.save(iotParkingURI);
	}

	@Override
	public void update(IotParkingURI iotParkingURI) {
		// TODO Auto-generated method stub
		iotParkingURIDao.update(iotParkingURI);
	}

	@Override
	public void delete(List<Integer> ids) {
		// TODO Auto-generated method stub
		iotParkingURIDao.delete(ids);
	}

	@Override
	public List<IotParkingURI> list() {
		// TODO Auto-generated method stub
		return iotParkingURIDao.list();
	}

	@Override
	public List<IotParkingURI> listIotParkingURIByKey(String key) {
		// TODO Auto-generated method stub
		return iotParkingURIDao.listIotParkingURIByKey(key);
	}

	@Override
	public IotParkingURI getIotParkingURIById(Integer id) {
		// TODO Auto-generated method stub
		return iotParkingURIDao.getIotParkingURIById(id);
	}

	@Override
	public IotParkingURI getIotParkingURIByUniqueCode(String uniqueCode) {
		// TODO Auto-generated method stub
		return iotParkingURIDao.getIotParkingURIByUniqueCode(uniqueCode);
	}

	@Override
	public void updateTokenTime(String token, Date updateTime) {
		// TODO Auto-generated method stub
		iotParkingURIDao.updateTokenTime(token, updateTime);
	}
}
